import { createApp } from 'vue'
import App from './App.vue'
import './index.less'
import router from './router'
import store from './store'
// import initServer from './request'
import { registerAntd, registerGlobal } from '@/plugins/index'

const app = createApp(App)

// 初始化umi-request
// initServer()

// 注册ant design组件
registerAntd(app)

// 注册全局公共方法
registerGlobal(app)

app.use(router)
app.use(store)

router.isReady().then(() => app.mount('#app'))
